package com.lang.beans;

import java.util.HashSet;
import java.util.Set;

/**
 * Courier entity. @author MyEclipse Persistence Tools
 */

public class Courier implements java.io.Serializable {

	// Fields

	private Integer id;
	private String pwd;
	private String tel;
	private String name;
	private String email;
	private Integer permission;
	private Integer salary;
	private Set tasks = new HashSet(0);

	// Constructors

	/** default constructor */
	public Courier() {
	}

	/** minimal constructor */
	public Courier(String pwd, String tel, String name, String email,
			Integer permission, Integer salary) {
		this.pwd = pwd;
		this.tel = tel;
		this.name = name;
		this.email = email;
		this.permission = permission;
		this.salary = salary;
	}

	/** full constructor */
	public Courier(String pwd, String tel, String name, String email,
			Integer permission, Integer salary, Set tasks) {
		this.pwd = pwd;
		this.tel = tel;
		this.name = name;
		this.email = email;
		this.permission = permission;
		this.salary = salary;
		this.tasks = tasks;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getPermission() {
		return this.permission;
	}

	public void setPermission(Integer permission) {
		this.permission = permission;
	}

	public Integer getSalary() {
		return this.salary;
	}

	public void setSalary(Integer salary) {
		this.salary = salary;
	}

	public Set getTasks() {
		return this.tasks;
	}

	public void setTasks(Set tasks) {
		this.tasks = tasks;
	}

}